<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="/tp/Public/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="/tp/Public/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="/tp/Public/css/style.css"/>
</head>

<body>
<div id="container">
    <!---->

    <include file="Public/tpl/header.html" />

    <!---->

    <div id="main" class="container">
        <div class="row">
            <div class="col-md-8">

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><b>创建帖子</b></h3>
                    </div>
                    <div class="panel-body">
                        <form enctype="multipart/form-data"  action="{:U('Article/add')}"  method="post">
                            <div class="form-group">
                                <label class="control-label" for="inputSuccess1">标题</label>
                                <input type="text" name="title" class="form-control" id="inputSuccess1">
                                <br />
                                <label class="control-label" for="inputSuccess2">分类</label>
                                <select class="form-control " name="sort" id="inputSuccess2">
                                    <foreach name="sorts" item="sort" key="key">
                                        <option name="sort{$key}" value="{$sort['name']}">{$sort['name']}</option>
                                    </foreach>
                                </select>
                                <br />
                                <label class="control-label" for="inputSuccess3">内容</label>
                                <textarea  name="content"  class="form-control" rows="5" cols="" id="inputSuccess3"></textarea>
                                <br />
                                <input type="submit" class="btn  btn-primary btn-block" name="" id="" value="发布" />
                            </div>
                        </form>
                    </div>
                </div>
            </div>

            <div class="col-md-4 hidden-xs">

                <!---->

            </div>
        </div>

    </div>

    <!---->
</div>
<!---->

<include file="Public/tpl/footer.html" />
<!---->
<script src="/tp/Public/js/jquery-1.11.0.js" type="text/javascript" charset="utf-8"></script>
<script src="/tp/Public/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
</body>

</html>